Accept key number from command line