detectKeyPress-test