Refactor Keys enum.
Add QMetaEnum for Keys enum.
Explicitly set _fd to -1 when destroying.
Fix usage of QMetaEnum.
Improve handling of connect button.
Add methods for converting enum to string and vice versa.
Update UI layout.
Remove debug output.
Prepare for better configurability.
Add first configuration options.
Persist settings.
Improve configurability.