I don't like these kind of things either. It's better to just return an error code than a crash.

The actual error looks very "Delphi-ish" and seems to be generated by the TSDLInputManager wrapper class. If you have the source, you could debug that yourself Just temporarly add the unit that contains TSDLInputManager to your project and step through the code using the debugger. It's probably just a matter of adding/tweaking an IF statement.

If you don't have the source, you can ask the people who are maintaining JEDI-SDL.