Fixed io.setKey() call to pass int.