I want to be able to detect when the user presses F10 or Ctrl+F10 outside of my program, and upon receiving the key press, it will send text to whatever they currently have
You can check that in the keypress event:
if not e.control and e.keycode = keys.F10 then elseif e.keycode = keys.F10 then end if