Is it possible to override the default editor controls?

I would like to override a few of the default editor controls from my custom editor. However the following script doesn’t work to override the F key, the X key or the Spacebar. If the solution means having to use Reflection for this then that’s okay but I can’t find any examples as to how to go about achieving this.

public void OnSceneGUI(SceneView sceneView)
  if (Event.current.isKey)
    if (Event.current.Equals(Event.KeyboardEvent("F")))
      Debug.Log ("F");
      //Event.current.type = EventType.Used;
      Event.current.Use ();

Have your code in the SceneView callback, like you apparently have now. The following seems to work:

//register to the delegate in OnEnable
SceneView.onSceneGUIDelegate += SceneGUI;

//in SceneGUI
if(Event.current.commandName == "FrameSelected"){
    Event.current.commandName = "";

As for X and Spacebar (it’s shift-spacebar in 4.3), you can change those in Preferences → Keys. Alternatively, you can check for the key itself:

if(Event.current.keyCode == KeyCode.X)