private bool isButtonDown(MouseButton key) { if (buttons.ContainsKey(key)) { return(buttons[key]); } return(false); }
private bool isKeyDown(Keys key) { if (keydictionary.ContainsKey(key)) { return(keydictionary[key]); } return(false); }