graphics events sort of working, but keys need more work