Get keycard level function