Inputhandler events instead of isKeyPressed