Rename Motion to ButtonPress, had m yevent codes mixed up
Add the keypress event
Implement window moving and resizing