Made more changes to uinput support. Key grabbing should work better in X.