added file to handle mouse and keyboard events, track mouse coords