drawing works using arrow keys and space, but is still very buggy