basic skeleton for mouse keyboard events.