>Is there a way to clear the lastkey() value WITHOUT fiddling with keyboard buffer.
>eg I can go
>
if lastkey()=27
> keyboard "!"
> inkey(0,'H')
>endif
>
>however in certain situations this may interfere with the user's typeahead, so it would be really nice if i could say lastkeyclear() or something.
Short answer is no, you have to put a keystroke oin the buffer to change lastkey(). If you think about it that only makes sense, if LastKey() is supposed to tell you what the last key pressed was then the only way to alter the last key pressed is to press a key.