Commented out the SDL_WM_SetIcon call. This enabled getting window focus -> enabled you to use the keyboard.
The rest is just trying to get the keyboard mappings to such a state that they make sense on the N900.
and I'm still missing the ability to enter the save dialog and enter numbers - the keyboard command part of the code is a bit confusing there and I don't know SDL anyway.