[PATCH] server: Return the correct key state