public void handleInput() { mouse = Mouse.GetState(); keyboard = Keyboard.GetState(); // add key functionality here if (mouse.RightButton == ButtonState.Released && RightMousePS == ButtonState.Pressed) { if (RightClick != null) { RightClick.execute(); } } if (keyboard.IsKeyDown(Keys.Escape)) { if (EscapeKey != null) { EscapeKey.execute(); } } RightMousePS = mouse.RightButton; }