public bool KeyPressed(Keys key) { return downCurr[(int)key] && !downPrev[(int)key] && !masked[(int)key]; }
public bool KeyToggled(Keys key) { return toggled[(int)key]; }
public bool KeyDown(Keys key) { return downCurr[(int)key] && !masked[(int)key]; }
public bool KeyReleased(Keys key) { return !downCurr[(int)key] && downPrev[(int)key] && !masked[(int)key]; }