Fixed the duplicate case problem by assigning unrelated control characters to funstion and control keys