Miscelanious plumbing functions

1. Detect version command, print version, and exit

handle version command
if len(os.Args) > 1 && os.Args[1] == "version" {
    fmt.Println("Keyboard version: @{version}")
    os.Exit(0)
}

Used by 1