remove test keypressed method