Run "launchctl stop com.apple.SystemUIServer.agent" instead of OS restart

The command "launchctl stop com.apple.SystemUIServer.agent" is sufficient to make the changes to the ApplePressAndHoldEnabled setting take effect, rather than requiring a restart of OS X.

PS. I haven't touched Java in 10+ years, so I'm not sure what the best idiom is for two sequential 'process' calls.