How to detect multiple key press within a brief period