Oops, forgot to say that I'm wondering about a sollution in the shell, not in the program using the keyport... I wrote: > > When leaving a program reading keypresses with ports the last pressed key is also detected by the shell, can anything be done to avoid this? >