This locking mechanism including the hook and corresponding hook-in groove and the release button is designed to prevent the keyboard 200 from sliding out of brackets 230a, 230b during transportation of the computer from one location to another location.