I have a DOSBox version that works with the virtual keyboard (well, I only tested with N8x0 but should work on N900). However, the Maemo/Hildon virtual keyboard doesn't have function keys.
Search for "rover.sys" (N900) or selene.sys (N810). This will map the F1-F10 keys to Shift+Fn+[1234567890]