Allow number for options to be entered directly

Some numeric options have quite a lot valid values.
Moving through them with the next/previous keys takes some time.
(With #5337 the ITEM_SPAWNRATE option has about 1000 valid values!)

This PR allows the user to press enter on an option and enter the value directly.
For boolean options it will only move to the next option value, same for string options.