Keyword function error inverts position of arguments?

Please provide an MWE.