Allow number input for options

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.