In the CREATE TABLE statement, you only have to list the key columns first, if they are defined by KEY in the syntax element key_or_not_null_spec.
In a CREATE TABLE statement you must not specify KEY in key_or_not_null_spec as well as a key definition.
Specify the key columns in the SQL statement correctly.