void target_KeyUp(object sender, KeyEventArgs e) { LastKeyboardState.Press(e.Key); CurrentKeyboardState.Leave(e.Key); }