Work with keyboard and mouse events (1)