public void Dispose() { if (mouse != null) { mouse.Dispose(); } if (keys != null) { keys.Dispose(); } }