Code:
on *:input:@moo:{
  echo -s Pre: $target
  window -c @moo
  echo -s Post: $target
}